package com.base.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhou minghao
 * @date 2024/4/22
 * @description
 */
@Data
@ConfigurationProperties(prefix = "cors")
@Component
public class CorsProperties {
    private List<String> AccessControlAllowOrigin;
    private List<String> AccessControlAllowMethods;
    private List<String> AccessControlAllowHeaders;
    private Boolean AccessControlAllowCredentials;
    private Long AccessControlMaxAge;
}
